import cv2
import matplotlib.pyplot as plt

img_cat=cv2.imread('cat.jpg')
img_dog=cv2.imread('dog.jpg')

img_dog = cv2.resize(img_dog, (500, 414))
img_dog.shape

res = cv2.addWeighted(img_cat, 0.4, img_dog, 0.6, 0)

plt.imshow(res)

res = cv2.resize(img_cat, (0, 0), fx=4, fy=4)
plt.imshow(res)

res = cv2.resize(img_cat, (0, 0), fx=4, fy=4)
plt.imshow(res)